package cn.glutnn.entity.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * Author:   msh
 * Date:     2024/10/25 下午5:08
 * Description:
 */

@Data
public class RegisterDTO {
    @NotEmpty(message = "用户名不能为空")
    private String username;
    @Size(min = 6, max = 16, message = "密码长度必须在6-16位之间")
    @NotEmpty(message = "密码不能为空")
    private String password;
    private String nickname;
    @Size(min = 6, max = 16, message = "密码长度必须在6-16位之间")
    @NotEmpty(message = "确认密码不能为空")
    private String rePassword;
}
